package em

import (
	"fmt"
	"github.com/tnnmigga/enum"
)

var EnumTestInt = enum.New[struct {
	ZERO int
	ONE  int
	TWO  int
}]()

var EnumTestStr = enum.New[struct {
	ZERO string
	ONE  string
	TWO  string
}]()

var HttpStatus = enum.New[struct {
	OK       int `enum:"200" enumtext:"""` // 200
	NotFound int `enum:"404"`              // 404
}]()

var HttpStatusTxt = enum.New[struct {
	OK       string `enum:"ok"` // ok
	NotFound string // NotFound
}]()

func run() {
	fmt.Println(HttpStatus.NotFound)                                // 404
	fmt.Println(HttpStatusTxt.NotFound)                             // NotFound
	fmt.Println(EnumTestInt.ZERO, EnumTestInt.ONE, EnumTestInt.TWO) // 0 1 2
	fmt.Println(EnumTestStr.ZERO, EnumTestStr.ONE, EnumTestStr.TWO) // ZERO ONE TWO
}
